<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link href="/static/static/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="/static/static/h-ui.admin/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="/static/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script><![endif]-->
<title>添加合租信息</title>
<style type="text/css">
li{margin-bottom: 30px}
</style>
</head>
<body>

<div class="pd-20">
  <form action="" method="post" class="form form-horizontal" id="form-article-add">
    <ul>
      <li>添加人员: <input type="text" class="input-text" name="uname" placeholder="姓名" required></li>
      <li>添加手机号 :<input type="text" class="input-text" name="tel" placeholder="手机号" required></li>
      <li><button class="btn btn-primary radius" id="submit" type="submit"><i class="Hui-iconfont">&#xe600; 添加信息</a></li>
    </ul>
  </form>
</div>
 <table class="table table-border table-bordered table-bg table-hover table-sort">
      <thead>
        <tr class="text-c">
          <th width="30">参与人/手机号</th>
        </tr>
      </thead>
      <tbody>
      {foreach name='join' item='v'}
        <tr class="text-c va-m you">
          <td>{$v}</td>
        </tr>
        {/foreach}
      </tbody>
  </table>
{include file='public/footer'}
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
  <script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript">
  $().ready(function(){
    $('form').validate({
      submitHandler:function(form){
        $(form).ajaxSubmit({
          type:'post',
          url:'{:url('join')}?cid={:input('get.cid')}',
          dataType:'text',
          success:function(res){
            res = eval('('+res+')');
            layer.msg(res.msg,{icon: 1,time:1000},function(){
              location.reload();
            });
          }
        })
      }
    });
  })

</script>